<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>消费管理</title>
<lui:context/>
<style type="text/css">
</style>
</head>
<u:View basePath="/res-datum/expense" userCSS="m_expense" userJS="m_expense" delayLoadJs="false">
	<body >
		<form id="expenseFrm" class='m-cust'>
			<sys:dropCodeSet codeTypes="consumeType,consumeChannel,consumeAddress,isCountTime,isInstalment,recommendLevel" id="codeSet"/>
			<div class="form-group m-narrow t-query-form">
				<div class="col-xs-12">
					<div class="col-xs-7">
						<div class="input-group">
						    <label for="searchConsumeTime" class="input-group-addon">消费时间</label>
						    <lui:datepicker name="searchConsumeTime" dateType="month" id="searchConsumeTime" dateFormat="yyyy-mm" defaultNow="true" 
						    	endDate="${u:getCurrTimeChangeNthDayDate(0,'yyyy-MM-dd HH:mm:ss') }" clearBtn="false"/>
						</div>
					</div>
					<div class="col-xs-5">
						<div class="btn-group" id="buttonGro">
							<button type="button" class="btn btn-primary" onclick="ExpensePage.queryByCondition()"><i class='fa fa-fw fa-search'></i>查询</button>
							<button type="button" class="btn btn-info" onclick="ExpensePage.expenseAdd()"><i class='fa fa-fw fa-plus'></i>新增</button>
						</div>
					</div>
				</div>
			</div>
			<div data-tag='statistic'>
				<div class="t-container">
					<div class='t-item'>
						<i class="fa fa-fw fa-cube t-icon m-color-dark-green"></i>
						<span>消费总额</span>
						<input name="sumConsumeAmount" value="--" class="m-color-dark-red t-text" readonly="readonly">
					</div>
				</div>
			</div>
			<div data-tag="expense-record">
				<div class='t-container'>
				</div>
			</div>
			<lui:ajax id="findExpenseInfoAjax" url="${ctx }/expense/find/page" formQuery="#expenseFrm" onSuccess="ExpensePage.onFindExpenseInfoSucc"/>
			<!-- 获取统计信息 -->
			<lui:ajax id="findStatisticInfoAjax" url="${ctx }/expense/find/statistic/info" formQuery="#expenseFrm" silent="true" type="post"
				onSuccess="ExpensePage.findStatisticInfoSucc" contentType="application/x-www-form-urlencoded"/>
			<lui:ajax id="deleteByIdAjax" url="${ctx }/expense/delete/id/" onSuccess="ExpensePage.onDeleteSucc"/>
		</form>
    </body>
</u:View>
</html>